package calculatorSim;
//class to perform square root of numbers

public class SquareNum {
//instance variables
	private long sqr; // square of a number
	private long num1;
	
	//constructor
	public SquareNum(int x){
		this.num1 = x;
		this.sqr = 0;
	}
	
	//methods
	//compute square
	public long square(){
		this.sqr = this.num1 * this.num1;
		return this.sqr;
	}
	//display results
	public void showResults(){
		System.out.println("The squre of the number is: " + square());
	}
}
